package com.rms.recruit_management_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "positions")
@Schema(description = "职位类")
public class Positions implements Serializable {

    @TableId(value = "position_id",type = IdType.AUTO)
    @Schema(description = "职位id")
    private Integer positionId;
    @TableField(value = "department_id")
    @Schema(description = "部门id")
    private Integer departmentId;
    @TableField(value = "position_name")
    @Schema(description = "职位名称")
    private String positionName;
    @TableField(value = "degree_requirement")
    @Schema(description = "学历要求")
    private String degreeRequirement;
    @TableField(value = "work_experience")
    @Schema(description = "工作经验")
    private String workExperience;
    @TableField(value = "position_salary")
    @Schema(description = "职位薪资")
    private String salary;
    @TableField(value = "department_name")
    @Schema(description = "部门名称")
    private String departmentName;
    @TableField(value = "description")
    @Schema(description = "职位描述")
    private String positionDescription;
    @TableField(value = "submit_quantity")
    @Schema(description = "投递数量")
    private Integer submitQuantity;
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
